Skip to main content

How to Check which PHP and Apache Modules you have Installed

So you would like to get a list of all of the Apache modules installed on the box where you are hosted. What command, script, or link should you use? You have come to the right place. This article covers how to check which PHP and Apache modules you have installed. Follow these quick steps:

  1. Login via SSH to your server to run the following commands.

    Apache:

    /usr/local/apache/bin/httpd -l  

    PHP:

    php -v  
  2. If the module that you are looking for is not listed you will need to run a recompile to have the module loaded. On cPanel servers this can be done by running the following command:

    /scripts/easyapache  

    ⚠️ If you are not familiar with this process please contact your hosting provider for further assistance.